package com.xishu.controller.eft;

import com.xishu.annotation.valid.MethodValidator;
import com.xishu.response.ResponseData;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class EftDebugController {
    private static Logger logger = LoggerFactory.getLogger(EftDebugController.class);

    @ApiOperation(value = "eft调试信息")
    @PutMapping(value = ("/eft/debug"), produces = ("application/json;charset=UTF-8"))
    @MethodValidator(mustLogin = false)
    public ResponseData eftDebug(@RequestBody String str) {
        logger.info("str is {}", str);
        return ResponseData.emptyResponse();
    }
}
